package com.heima.behavior.controller.v1;

import com.heima.behavior.service.ApBehaviorEntryService;
import com.heima.model.behavior.pojos.ApBehaviorEntry;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/inset/ApBehaviorEntryController/")
public class ApFeignBehaviorEntryController {
    @Autowired
    ApBehaviorEntryService apBehaviorEntryService;

    @PostMapping
    public ApBehaviorEntry findByUserIdOrEquipmentId(@RequestBody Integer userId, @RequestBody Integer equipmentId){
        return apBehaviorEntryService.findByUserIdOrEquipmentId(userId,equipmentId);
    }
}
